package top.fengyulou.xiaofeng.mapper;

import org.apache.ibatis.annotations.Param;
import top.fengyulou.xiaofeng.domain.ExamUser;
import top.fengyulou.xiaofeng.dto.PaperQuestionRuleDto;
import top.fengyulou.xiaofeng.dto.QuestionDto;

import java.util.List;
import java.util.Map;

public interface PaperQuestionRuleMapper {
    List<PaperQuestionRuleDto> list(PaperQuestionRuleDto paperQuestionRuleDto);

    PaperQuestionRuleDto getById(String id);

    void insert(PaperQuestionRuleDto paperQuestionRuleDto);

    void insertBatch(List<PaperQuestionRuleDto> list);

    void update(PaperQuestionRuleDto paperQuestionRuleDto);

    void delete(String[] ids);

    List<String> getClassifyIdListByPaperId(PaperQuestionRuleDto paperQuestionRuleDto);

    List<PaperQuestionRuleDto> getTypeCountByPaperId(String paperId);

    PaperQuestionRuleDto getByPaperIdAndClassifyIdAndQstType(@Param("paperId") String paperId, @Param("classifyId") String classifyId, @Param("qstType") String qstType);
}